.login-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease-in-out infinite;

  @keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); }
    50% { background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%); }
  }

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
  }

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="0.5" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
  }
}

// 左侧品牌区域
.brand-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  z-index: 1;

  @media (max-width: 1024px) {
    display: none;
  }
}

.brand-content {
  max-width: 520px;
  color: white;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.logo-icon {
  width: 70px;
  height: 70px;
  margin-right: 24px;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  
  svg {
    width: 100%;
    height: 100%;
  }
}

.brand-title {
  font-size: 52px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(45deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
}

.brand-subtitle {
  font-size: 26px;
  font-weight: 300;
  margin: 16px 0 40px 0;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-description {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 50px;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 17px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  transition: all 0.3s ease;
  
  &:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
  }
  
  .feature-icon {
    font-size: 28px;
    margin-right: 18px;
    width: 44px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
}

// 右侧登录区域
.login-section {
  flex: 0 0 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  position: relative;
  z-index: 1;

  @media (max-width: 1024px) {
    flex: 1;
    min-width: 100%;
    padding: 30px;
  }
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 28px;
  padding: 56px;
  width: 100%;
  max-width: 440px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  animation: cardSlideIn 0.8s ease-out;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 28px;
    pointer-events: none;
  }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.login-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 17px;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

.login-form {
  .el-form-item {
    margin-bottom: 24px;
  }
}

.custom-input {
  :deep(.el-input__wrapper) {
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    padding: 16px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    
    &:hover {
      border-color: #667eea;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
      background: rgba(255, 255, 255, 0.9);
    }
    
    &.is-focus {
      border-color: #667eea;
      box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.12),
        0 8px 24px rgba(102, 126, 234, 0.2);
      background: rgba(255, 255, 255, 0.95);
      transform: translateY(-1px);
    }
  }
  
  :deep(.el-input__inner) {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
    
    &::placeholder {
      color: #a0aec0;
      font-weight: 400;
    }
  }
}

.input-icon {
  color: #9ca3af;
  font-size: 18px;
}

.captcha-container {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.captcha-input {
    flex: 1;
    min-width: 0;
    
    :deep(.el-input__wrapper) {
      height: 48px;
      border-radius: 12px;
      border: 1.5px solid #e2e8f0;
      padding: 0 18px;
      
      &:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
      }
      
      &.is-focus {
        border-color: #667eea;
        box-shadow: 
          0 0 0 3px rgba(102, 126, 234, 0.1),
          0 6px 20px rgba(102, 126, 234, 0.15);
      }
    }
  }

.captcha-image {
  flex-shrink: 0;
  width: 140px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  
  &:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
  }
  
  &:active {
    transform: translateY(0);
  }
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
  }
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.remember-me {
  :deep(.el-checkbox__label) {
    color: #666;
    font-size: 14px;
  }
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  
  &:hover {
    color: #5a67d8;
  }
}

.login-button-item {
  margin-bottom: 24px;
}

.login-button {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
  }
  
  &:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
      0 12px 32px rgba(102, 126, 234, 0.4),
      0 6px 16px rgba(118, 75, 162, 0.3);
    
    &::before {
      left: 100%;
    }
  }
  
  &:active {
    transform: translateY(-1px) scale(1.01);
  }
  
  &:disabled {
    opacity: 0.7;
    transform: none;
    
    &:hover {
      transform: none;
      box-shadow: none;
    }
  }
}

.register-link {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  
  span {
    color: #718096;
    font-size: 14px;
    margin-right: 8px;
  }
  
  a {
     color: #667eea;
     text-decoration: none;
     font-size: 14px;
     font-weight: 600;
     padding: 4px 8px;
     border-radius: 6px;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     
     &:hover {
       color: #5a67d8;
       background: rgba(102, 126, 234, 0.1);
       text-decoration: none;
       transform: translateY(-1px);
     }
     
     &:active {
       transform: translateY(0);
     }
   }
}

.footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  z-index: 1;
}

// 响应式设计
@media (max-width: 768px) {
  .login-section {
    padding: 20px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  .brand-title {
    font-size: 36px;
  }
  
  .brand-subtitle {
    font-size: 20px;
  }
}